package com.youlai.boot.form.converter;

import com.youlai.boot.form.model.vo.FormDefinitionVO;
import org.mapstruct.Mapper;
import com.youlai.boot.form.model.entity.FormDefinition;
import com.youlai.boot.form.model.form.FormDefinitionForm;

/**
 * 动态单定义对象转换器
 *
 * @author rabit
 * @since 2025-10-27 16:47
 */
@Mapper(componentModel = "spring")
public interface FormDefinitionConverter{

    FormDefinitionForm toForm(FormDefinition entity);

    FormDefinition toEntity(FormDefinitionForm formData);

    FormDefinitionVO toVO(FormDefinition entity);
}
